package com.google.gwt.sample.hello.client.notgenerated.eventFramework;

/**
 * The event that is fired when a Property changes.
 * 
 * @param <T> the class type of the Property
 */
public class PropertyChangeEvent<T>
{
   private Property<T> source;
   private T oldValue;
   private T newValue;

   public PropertyChangeEvent(Property<T> source, T oldValue, T newValue)
   {
      this.source = source;
      this.oldValue = oldValue;
      this.newValue = newValue;
   }

   public Property<T> getSource()
   {
      return source;
   }

   public T getNewValue()
   {
      return newValue;
   }

   public T getOldValue()
   {
      return oldValue;
   }
}
